package org.example.infrastructure.repository.orm.database;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.example.domain.model.entity.url.UrlShortenerStatsToday;
import org.example.domain.repository.UrlShortenerStatsTodayRepository;
import org.example.infrastructure.persistence.orm.UrlShortenerStatsTodayMapper;
import org.springframework.stereotype.Component;

@Component
@Slf4j
@RequiredArgsConstructor
public class MybatisUrlShortenerStatsTodayRepository implements UrlShortenerStatsTodayRepository {
    private final UrlShortenerStatsTodayMapper urlShortenerStatsTodayMapper;

    @Override
    public void insertUrlShortenerStatsToday(UrlShortenerStatsToday urlShortenerStatsToday) {
        urlShortenerStatsTodayMapper.insertUrlShortenerStatsToday(urlShortenerStatsToday);
    }
}
